package com.lhn.bbs.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ThemeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ThemeExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userid is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userid is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userid =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userid <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userid >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userid >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userid <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userid <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userid in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userid not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userid between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userid not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andPlateidIsNull() {
            addCriterion("plateid is null");
            return (Criteria) this;
        }

        public Criteria andPlateidIsNotNull() {
            addCriterion("plateid is not null");
            return (Criteria) this;
        }

        public Criteria andPlateidEqualTo(Integer value) {
            addCriterion("plateid =", value, "plateid");
            return (Criteria) this;
        }

        public Criteria andPlateidNotEqualTo(Integer value) {
            addCriterion("plateid <>", value, "plateid");
            return (Criteria) this;
        }

        public Criteria andPlateidGreaterThan(Integer value) {
            addCriterion("plateid >", value, "plateid");
            return (Criteria) this;
        }

        public Criteria andPlateidGreaterThanOrEqualTo(Integer value) {
            addCriterion("plateid >=", value, "plateid");
            return (Criteria) this;
        }

        public Criteria andPlateidLessThan(Integer value) {
            addCriterion("plateid <", value, "plateid");
            return (Criteria) this;
        }

        public Criteria andPlateidLessThanOrEqualTo(Integer value) {
            addCriterion("plateid <=", value, "plateid");
            return (Criteria) this;
        }

        public Criteria andPlateidIn(List<Integer> values) {
            addCriterion("plateid in", values, "plateid");
            return (Criteria) this;
        }

        public Criteria andPlateidNotIn(List<Integer> values) {
            addCriterion("plateid not in", values, "plateid");
            return (Criteria) this;
        }

        public Criteria andPlateidBetween(Integer value1, Integer value2) {
            addCriterion("plateid between", value1, value2, "plateid");
            return (Criteria) this;
        }

        public Criteria andPlateidNotBetween(Integer value1, Integer value2) {
            addCriterion("plateid not between", value1, value2, "plateid");
            return (Criteria) this;
        }

        public Criteria andThemetitleIsNull() {
            addCriterion("themetitle is null");
            return (Criteria) this;
        }

        public Criteria andThemetitleIsNotNull() {
            addCriterion("themetitle is not null");
            return (Criteria) this;
        }

        public Criteria andThemetitleEqualTo(String value) {
            addCriterion("themetitle =", value, "themetitle");
            return (Criteria) this;
        }

        public Criteria andThemetitleNotEqualTo(String value) {
            addCriterion("themetitle <>", value, "themetitle");
            return (Criteria) this;
        }

        public Criteria andThemetitleGreaterThan(String value) {
            addCriterion("themetitle >", value, "themetitle");
            return (Criteria) this;
        }

        public Criteria andThemetitleGreaterThanOrEqualTo(String value) {
            addCriterion("themetitle >=", value, "themetitle");
            return (Criteria) this;
        }

        public Criteria andThemetitleLessThan(String value) {
            addCriterion("themetitle <", value, "themetitle");
            return (Criteria) this;
        }

        public Criteria andThemetitleLessThanOrEqualTo(String value) {
            addCriterion("themetitle <=", value, "themetitle");
            return (Criteria) this;
        }

        public Criteria andThemetitleLike(String value) {
            addCriterion("themetitle like", value, "themetitle");
            return (Criteria) this;
        }

        public Criteria andThemetitleNotLike(String value) {
            addCriterion("themetitle not like", value, "themetitle");
            return (Criteria) this;
        }

        public Criteria andThemetitleIn(List<String> values) {
            addCriterion("themetitle in", values, "themetitle");
            return (Criteria) this;
        }

        public Criteria andThemetitleNotIn(List<String> values) {
            addCriterion("themetitle not in", values, "themetitle");
            return (Criteria) this;
        }

        public Criteria andThemetitleBetween(String value1, String value2) {
            addCriterion("themetitle between", value1, value2, "themetitle");
            return (Criteria) this;
        }

        public Criteria andThemetitleNotBetween(String value1, String value2) {
            addCriterion("themetitle not between", value1, value2, "themetitle");
            return (Criteria) this;
        }

        public Criteria andThemecontentIsNull() {
            addCriterion("themecontent is null");
            return (Criteria) this;
        }

        public Criteria andThemecontentIsNotNull() {
            addCriterion("themecontent is not null");
            return (Criteria) this;
        }

        public Criteria andThemecontentEqualTo(String value) {
            addCriterion("themecontent =", value, "themecontent");
            return (Criteria) this;
        }

        public Criteria andThemecontentNotEqualTo(String value) {
            addCriterion("themecontent <>", value, "themecontent");
            return (Criteria) this;
        }

        public Criteria andThemecontentGreaterThan(String value) {
            addCriterion("themecontent >", value, "themecontent");
            return (Criteria) this;
        }

        public Criteria andThemecontentGreaterThanOrEqualTo(String value) {
            addCriterion("themecontent >=", value, "themecontent");
            return (Criteria) this;
        }

        public Criteria andThemecontentLessThan(String value) {
            addCriterion("themecontent <", value, "themecontent");
            return (Criteria) this;
        }

        public Criteria andThemecontentLessThanOrEqualTo(String value) {
            addCriterion("themecontent <=", value, "themecontent");
            return (Criteria) this;
        }

        public Criteria andThemecontentLike(String value) {
            addCriterion("themecontent like", value, "themecontent");
            return (Criteria) this;
        }

        public Criteria andThemecontentNotLike(String value) {
            addCriterion("themecontent not like", value, "themecontent");
            return (Criteria) this;
        }

        public Criteria andThemecontentIn(List<String> values) {
            addCriterion("themecontent in", values, "themecontent");
            return (Criteria) this;
        }

        public Criteria andThemecontentNotIn(List<String> values) {
            addCriterion("themecontent not in", values, "themecontent");
            return (Criteria) this;
        }

        public Criteria andThemecontentBetween(String value1, String value2) {
            addCriterion("themecontent between", value1, value2, "themecontent");
            return (Criteria) this;
        }

        public Criteria andThemecontentNotBetween(String value1, String value2) {
            addCriterion("themecontent not between", value1, value2, "themecontent");
            return (Criteria) this;
        }

        public Criteria andThemedateIsNull() {
            addCriterion("themedate is null");
            return (Criteria) this;
        }

        public Criteria andThemedateIsNotNull() {
            addCriterion("themedate is not null");
            return (Criteria) this;
        }

        public Criteria andThemedateEqualTo(Date value) {
            addCriterion("themedate =", value, "themedate");
            return (Criteria) this;
        }

        public Criteria andThemedateNotEqualTo(Date value) {
            addCriterion("themedate <>", value, "themedate");
            return (Criteria) this;
        }

        public Criteria andThemedateGreaterThan(Date value) {
            addCriterion("themedate >", value, "themedate");
            return (Criteria) this;
        }

        public Criteria andThemedateGreaterThanOrEqualTo(Date value) {
            addCriterion("themedate >=", value, "themedate");
            return (Criteria) this;
        }

        public Criteria andThemedateLessThan(Date value) {
            addCriterion("themedate <", value, "themedate");
            return (Criteria) this;
        }

        public Criteria andThemedateLessThanOrEqualTo(Date value) {
            addCriterion("themedate <=", value, "themedate");
            return (Criteria) this;
        }

        public Criteria andThemedateIn(List<Date> values) {
            addCriterion("themedate in", values, "themedate");
            return (Criteria) this;
        }

        public Criteria andThemedateNotIn(List<Date> values) {
            addCriterion("themedate not in", values, "themedate");
            return (Criteria) this;
        }

        public Criteria andThemedateBetween(Date value1, Date value2) {
            addCriterion("themedate between", value1, value2, "themedate");
            return (Criteria) this;
        }

        public Criteria andThemedateNotBetween(Date value1, Date value2) {
            addCriterion("themedate not between", value1, value2, "themedate");
            return (Criteria) this;
        }

        public Criteria andReplynumIsNull() {
            addCriterion("replynum is null");
            return (Criteria) this;
        }

        public Criteria andReplynumIsNotNull() {
            addCriterion("replynum is not null");
            return (Criteria) this;
        }

        public Criteria andReplynumEqualTo(Integer value) {
            addCriterion("replynum =", value, "replynum");
            return (Criteria) this;
        }

        public Criteria andReplynumNotEqualTo(Integer value) {
            addCriterion("replynum <>", value, "replynum");
            return (Criteria) this;
        }

        public Criteria andReplynumGreaterThan(Integer value) {
            addCriterion("replynum >", value, "replynum");
            return (Criteria) this;
        }

        public Criteria andReplynumGreaterThanOrEqualTo(Integer value) {
            addCriterion("replynum >=", value, "replynum");
            return (Criteria) this;
        }

        public Criteria andReplynumLessThan(Integer value) {
            addCriterion("replynum <", value, "replynum");
            return (Criteria) this;
        }

        public Criteria andReplynumLessThanOrEqualTo(Integer value) {
            addCriterion("replynum <=", value, "replynum");
            return (Criteria) this;
        }

        public Criteria andReplynumIn(List<Integer> values) {
            addCriterion("replynum in", values, "replynum");
            return (Criteria) this;
        }

        public Criteria andReplynumNotIn(List<Integer> values) {
            addCriterion("replynum not in", values, "replynum");
            return (Criteria) this;
        }

        public Criteria andReplynumBetween(Integer value1, Integer value2) {
            addCriterion("replynum between", value1, value2, "replynum");
            return (Criteria) this;
        }

        public Criteria andReplynumNotBetween(Integer value1, Integer value2) {
            addCriterion("replynum not between", value1, value2, "replynum");
            return (Criteria) this;
        }

        public Criteria andLikeIsNull() {
            addCriterion("`like` is null");
            return (Criteria) this;
        }

        public Criteria andLikeIsNotNull() {
            addCriterion("`like` is not null");
            return (Criteria) this;
        }

        public Criteria andLikeEqualTo(Integer value) {
            addCriterion("`like` =", value, "like");
            return (Criteria) this;
        }

        public Criteria andLikeNotEqualTo(Integer value) {
            addCriterion("`like` <>", value, "like");
            return (Criteria) this;
        }

        public Criteria andLikeGreaterThan(Integer value) {
            addCriterion("`like` >", value, "like");
            return (Criteria) this;
        }

        public Criteria andLikeGreaterThanOrEqualTo(Integer value) {
            addCriterion("`like` >=", value, "like");
            return (Criteria) this;
        }

        public Criteria andLikeLessThan(Integer value) {
            addCriterion("`like` <", value, "like");
            return (Criteria) this;
        }

        public Criteria andLikeLessThanOrEqualTo(Integer value) {
            addCriterion("`like` <=", value, "like");
            return (Criteria) this;
        }

        public Criteria andLikeIn(List<Integer> values) {
            addCriterion("`like` in", values, "like");
            return (Criteria) this;
        }

        public Criteria andLikeNotIn(List<Integer> values) {
            addCriterion("`like` not in", values, "like");
            return (Criteria) this;
        }

        public Criteria andLikeBetween(Integer value1, Integer value2) {
            addCriterion("`like` between", value1, value2, "like");
            return (Criteria) this;
        }

        public Criteria andLikeNotBetween(Integer value1, Integer value2) {
            addCriterion("`like` not between", value1, value2, "like");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}